package com.numberone.master.modules.card.entity;

import org.hibernate.validator.constraints.Length;

import com.numberone.master.modules.sys.entity.Office;
import com.numberone.master.modules.sys.entity.Area;

import com.numberone.master.common.persistence.DataEntity;
import com.numberone.master.common.utils.excel.annotation.ExcelField;

/**
 * 物联网卡Entity
 * @author chegkang
 * @version 2018-02-01
 */
public class Card extends DataEntity<Card> {
	
	private static final long serialVersionUID = 1L;
	private String operator;		// 运营商分类
	private String phonenumber;		// 电话号码
	private Long brand;		// 品名
	private String pkg;		// 套餐类型
	private Long cardType;		// 卡类型
	private Long cardStatus;		// 状态
	private String iccid;		// iccid
	private Long batchid;		// 批次
	private Long cardno;		// 卡号
	private Office office;		// 代理商
	private Long memid;		// 最终用户的
	private String flowval;		// 流值
	private Long jituancode;		// 集团代码
	private Long servicecode;		// 服务代码
	private String tixphoneno;		// 票电话
	private String dxgn;		// dxgn
	private String yygn;		// yygn
	private String remark;		// 备注
	private String statecontrol;		// 状态控制
	private String flowcontrol;		// 流量控制
	private String warning;		// 流量预警值
	private Area area;		// 所属地区id
	private String officeName;//所属运营商
	
	private String iccidStart;//开始iccid
	private String iccidEnd;//结束iccid
	
	private String areaId;//所属对去
	private String officeId;
	private String dbName;//下级所属的人
	private String userName;//最终用户
	private String type;//卡类型
	public Card() {
		super();
	}

	public Card(String id){
		super(id);
	}

	@Length(min=0, max=20, message="运营商分类长度必须介于 0 和 20 之间")
	public String getOperator() {
		return operator;
	}

	public void setOperator(String operator) {
		this.operator = operator;
	}
	
	public Long getBrand() {
		return brand;
	}

	public void setBrand(Long brand) {
		this.brand = brand;
	}
	
	@ExcelField(title="卡ICCID", align=2, sort=30)
	public String getIccid() {
		return iccid;
	}
	
	
	public void setIccid(String iccid) {
		this.iccid = iccid;
	}
	
	@ExcelField(title="所属套餐", align=2, sort=30)
	public String getPkg() {
		return pkg;
	}

	public void setPkg(String pkg) {
		this.pkg = pkg;
	}
	
	@ExcelField(title="卡号", align=2, sort=30)
	public String getPhonenumber() {
		return phonenumber;
	}

	public void setPhonenumber(String phonenumber) {
		this.phonenumber = phonenumber;
	}
	
	public Long getCardType() {
		return cardType;
	}

	public void setCardType(Long cardType) {
		this.cardType = cardType;
	}
	
	public Long getCardStatus() {
		return cardStatus;
	}

	public void setCardStatus(Long cardStatus) {
		this.cardStatus = cardStatus;
	}
	
	
	public Long getBatchid() {
		return batchid;
	}

	public void setBatchid(Long batchid) {
		this.batchid = batchid;
	}
	
	public Long getCardno() {
		return cardno;
	}

	public void setCardno(Long cardno) {
		this.cardno = cardno;
	}
	
	public Office getOffice() {
		return office;
	}

	public void setOffice(Office office) {
		this.office = office;
	}
	
	public Long getMemid() {
		return memid;
	}

	public void setMemid(Long memid) {
		this.memid = memid;
	}
	
	@Length(min=0, max=20, message="流值长度必须介于 0 和 20 之间")
	public String getFlowval() {
		return flowval;
	}

	public void setFlowval(String flowval) {
		this.flowval = flowval;
	}
	
	public Long getJituancode() {
		return jituancode;
	}

	public void setJituancode(Long jituancode) {
		this.jituancode = jituancode;
	}
	
	public Long getServicecode() {
		return servicecode;
	}

	public void setServicecode(Long servicecode) {
		this.servicecode = servicecode;
	}
	
	@Length(min=0, max=11, message="票电话长度必须介于 0 和 11 之间")
	public String getTixphoneno() {
		return tixphoneno;
	}

	public void setTixphoneno(String tixphoneno) {
		this.tixphoneno = tixphoneno;
	}
	
	@Length(min=0, max=11, message="dxgn长度必须介于 0 和 11 之间")
	public String getDxgn() {
		return dxgn;
	}

	public void setDxgn(String dxgn) {
		this.dxgn = dxgn;
	}
	
	@Length(min=0, max=11, message="yygn长度必须介于 0 和 11 之间")
	public String getYygn() {
		return yygn;
	}

	public void setYygn(String yygn) {
		this.yygn = yygn;
	}
	
	@Length(min=0, max=50, message="备注长度必须介于 0 和 50 之间")
	public String getRemark() {
		return remark;
	}

	public void setRemark(String remark) {
		this.remark = remark;
	}
	
	@Length(min=0, max=11, message="状态控制长度必须介于 0 和 11 之间")
	public String getStatecontrol() {
		return statecontrol;
	}

	public void setStatecontrol(String statecontrol) {
		this.statecontrol = statecontrol;
	}
	
	public String getFlowcontrol() {
		return flowcontrol;
	}

	public void setFlowcontrol(String flowcontrol) {
		this.flowcontrol = flowcontrol;
	}
	
	@Length(min=0, max=50, message="流量预警值长度必须介于 0 和 50 之间")
	public String getWarning() {
		return warning;
	}

	public void setWarning(String warning) {
		this.warning = warning;
	}
	
	
	public Area getArea() {
		return area;
	}
	
	public void setArea(Area area) {
		this.area = area;
	}

	public String getOfficeName() {
		return officeName;
	}

	public void setOfficeName(String officeName) {
		this.officeName = officeName;
	}
	@ExcelField(title="所属地区", align=2, sort=30)
	public String getAreaId() {
		return areaId;
	}

	public void setAreaId(String areaId) {
		this.areaId = areaId;
	}

	public String getIccidStart() {
		return iccidStart;
	}

	public void setIccidStart(String iccidStart) {
		this.iccidStart = iccidStart;
	}

	public String getIccidEnd() {
		return iccidEnd;
	}

	public void setIccidEnd(String iccidEnd) {
		this.iccidEnd = iccidEnd;
	}

	public String getOfficeId() {
		return officeId;
	}

	public void setOfficeId(String officeId) {
		this.officeId = officeId;
	}

	public String getDbName() {
		return dbName;
	}

	public void setDbName(String dbName) {
		this.dbName = dbName;
	}

	public String getUserName() {
		return userName;
	}

	public void setUserName(String userName) {
		this.userName = userName;
	}

	public String getType() {
		return type;
	}

	public void setType(String type) {
		this.type = type;
	}
	
}